package com.zjt.bean;

import lombok.Data;

import java.util.Date;

@Data
public class Admin {
    private Integer id;

    private String username;

    private String password;

    private String lastLoginIp;

    private Date lastLoginTime;

    private String avatar;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;

    //JavaType和JdbcType不匹配的时候 →
    // 输出映射：数据库varchar → String → Integer[]
    // 输入映射：Integer[] → String →  varchar
    // 类型转换 String ←→ Integer[]

    //响应的json数据需要的是一个数组 → 而我们当前提供的是字符串
    //private String roleIds;
    private Integer[] roleIds;


}